import { useContext } from "react"
import { SearchPropsContext } from "../searchPropsContext"

export const useSearchPropsState = () => {
    const { state } = useContext(SearchPropsContext);
    return state;
}

export const useConfigEventsApi = () => {
    const { configEventsApi, configEvents } = useContext(SearchPropsContext);
    return {
        configEventsApi: configEventsApi!,
        configEvents: configEvents!
    }
}